package eop.project;
import eop.project.Activity;

import grails.test.*

class ActivityTest extends GrailsUnitTestCase {
    protected void setUp() {
        super.setUp()
    }

    protected void tearDown() {
        super.tearDown()
    }

    void testSomething() {
		mockDomain (Activity)
		Activity a=new Activity(vaac:'Darwin',color:'red')
		a.validate()
		if(a.hasErrors()){
			a.errors.each{ println "volcano error : $it" }
		}
		else
			println "no errors"
		a.save()
    }
}
